package com.jams.goodox.entity;

import java.io.Serializable;

/**
 * 停车申请记录实体
 * Created by jams_zhen on 2017/5/24.
 */

public class ParkHistoryBean implements Serializable{
    private String carNum;
    private String unitPriceNum;//此处显示为单价 x数目
    private String continueTime;//持续时间，此处需要换行显示
    private String parkType;//待付款 ，到期时间7天内，已过期 已关闭 有效到期时间7天外
    private String orderNo;//订单号
    private boolean isChangeCombo;//套餐是否发生变化
    private String enTime;//到期过期之类的文案
    private String orderId;

    private PayInfo pay;
    private double redPicketMoney;

    private double orderAllPay;

    private String startTime;//开始时间
    private String endTime;//结束时间

    private boolean canContinuePark;//是否可续约

    public static final String Type_Park_Need_pay="101";//待付款
    public static final String Type_Park_Past_Close="102";//已关闭or已过期
    public static final String Type_Park_Commend="103";//已完成

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getUnitPriceNum() {
        return unitPriceNum;
    }

    public void setUnitPriceNum(String unitPriceNum) {
        this.unitPriceNum = unitPriceNum;
    }

    public String getContinueTime() {
        return continueTime;
    }

    public void setContinueTime(String continueTime) {
        this.continueTime = continueTime;
    }

    public String getParkType() {
        return parkType==null?"":parkType;
    }

    public void setParkType(String parkType) {
        this.parkType = parkType;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public boolean isChangeCombo() {
        return isChangeCombo;
    }

    public void setChangeCombo(boolean changeCombo) {
        isChangeCombo = changeCombo;
    }

    public String getEnTime() {
        return enTime==null?"":enTime;
    }

    public void setEnTime(String enTime) {
        this.enTime = enTime;
    }

    public PayInfo getPay() {
        return pay;
    }

    public void setPay(PayInfo pay) {
        this.pay = pay;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public double getRedPicketMoney() {
        return redPicketMoney;
    }

    public void setRedPicketMoney(double redPicketMoney) {
        this.redPicketMoney = redPicketMoney;
    }

    public double getOrderAllPay() {
        return orderAllPay;
    }

    public void setOrderAllPay(double orderAllPay) {
        this.orderAllPay = orderAllPay;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public boolean isCanContinuePark() {
        return canContinuePark;
    }

    public void setCanContinuePark(boolean canContinuePark) {
        this.canContinuePark = canContinuePark;
    }

    //仅当待付款或可预约显示底部view
    public boolean isShowBottomView(){
        if(canContinuePark||Type_Park_Need_pay.equalsIgnoreCase(parkType))return true;
        else return false;
    }
}
